package XaSqlStudy;

import javax.transaction.xa.Xid;

public class MyXid implements Xid {
    public int formatId;
    public byte gtRid[];
    public byte bqUal[];
    public MyXid(){

    }
    public MyXid(int formatId,byte gtRid[],byte bqUal[]){
        this.formatId=formatId;
        this.gtRid=gtRid;
        this.bqUal=bqUal;
    }
    @Override
    public int getFormatId() {
        return formatId;
    }

    @Override
    public byte[] getGlobalTransactionId() {
        return gtRid;
    }

    @Override
    public byte[] getBranchQualifier() {
        return gtRid;
    }
}
